<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Guest Write</title>
<link rel="stylesheet" href="g_css/gwrite.css" type="text/css" />
<script src="js/gwrite.js" ></script>

</head>
<body>
	<div id="guest_main">
		<div id="guest_intro">
		<h1>
			<a href="guest_write.jsp">Blog Guest page</a>
		</h1>
		<p id="guest_introsub">방명록을 남겨주세요 ( Please, write the guest page )</p>
		</div>
		
		<form action="guestRegProcess.do" method="post">
			<div id="guest_formwrapper">
				<div class="dynamiclabel">
					<input disabled id="name" placeholder="Name" type="text" value="${ member.mName }" />
					<input type="hidden" name="gWriter" value="${ member.mNo }" />
					<input type="hidden" name="gMaster" value="${ master.mNo }" />
					<label for="name">Writer</label>
				</div>
				<div class="dynamiclabel">
					<textarea name="gContent" id="feedback" placeholder="Content" style="overflow:hidden" onkeydown="limit(this.form)"></textarea>
					<label for="feedback">Content</label>
				</div>
				<div id="guest_ok">
					<input type="submit" value="write ok" id="guest_click" onclick="submit1(this.form)" />&nbsp;&nbsp;
					<a href="guest_write.jsp">rewrite</a>
				</div>
			</div>
		</form>	
		<iframe name=iname style='width:100%' scrolling=no frameborder=0 src='guest_main.do' onLoad="setIFrameHeight(this)"></iframe>
	</div>
</body>
</html>